﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Customer.Bussiness_Service;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ServiceCore;

namespace Customer.Areas.rk_aliface.Controllers
{

    [ApiController, Area("ali_face"), Route("/ali_face/[action]")]
    public class ali_faceController : ControllerBase
    {
        private readonly Iali_mch_settlement_service _service;
        private readonly IToole_DI _tool;
        public ali_faceController(Iali_mch_settlement_service service, IToole_DI tool)
        {
            _service = service;
            _tool = tool;
        }
        [HttpGet]
        public async Task<ResultObjModel> temp_in_data()
        {
            return await Task.Factory.StartNew<ResultObjModel>(() =>
            {
                return _service.temp_in_data();
            });
        }

        [HttpGet]
        public async Task<ResultObjModel> start_run_ali()
        {
            return await Task.Factory.StartNew<ResultObjModel>(() =>
            {
                return _service.start_run_ali();
            });
        }
    }
}